package cn.kust.serviceinterestpoint.mapper;

import cn.kust.serviceinterestpoint.entity.InterestPicture;
import cn.kust.serviceinterestpoint.entity.vo.PictureAndVideoDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author microTourism
 * @since 2022-07-25
 */
@Repository
public interface InterestPictureMapper extends BaseMapper<InterestPicture> {
    /**
     * 根据兴趣点id查询他的所有图片
     * @param interestId
     * @return
     */
    List<PictureAndVideoDTO> selectPictureByInterestId(Long interestId);
}
